<?php
	$_TMP_C = strtolower(request()->controller());
	$_TMP_A = strtolower(request()->action());
	$seoData = Config('keyword.app.home');
	if($seoData[$_TMP_C][$_TMP_A]){
		$seoData=$seoData[$_TMP_C][$_TMP_A];
	}else{
		$seoData=array('title'=>'{页面标题} - {全局标题}', 'keyword' => '{页面关键字},{全局关键字}', 'description' => '{页面描述},{全局描述}');
	}
	$page_title = isset($page_title) ? $page_title : '';
	$page_keyword = isset($page_keyword) ? $page_keyword : '';
	$page_description = isset($page_description) ? $page_description : '';
	$Seo['title']=str_replace(array('{页面标题}','{全局标题}'),array($page_title,Config('site.web_title')),$seoData['title']);
	$Seo['keyword']=str_replace(array('{页面关键字}','{全局关键字}'),array($page_keyword,Config('site.keywords')),$seoData['keyword']);
	$Seo['description']=str_replace(array('{页面描述}','{全局描述}'),array($page_description,Config('site.description')),$seoData['description']);
?>
<title>{$Seo.title}</title>
<meta name="Keywords" content="{$Seo.keyword}" />
<meta name="Description" content="{$Seo.description}" />
<?php
	unset($Seo);
	unset($_TMP_C);
	unset($_TMP_A);
	unset($seoData);
	unset($page_title);
	unset($page_keyword);
	unset($page_description);
?>